﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GenericStateMachine
{
    /// <summary>
    /// Associates the concrete state class with the state enumeration.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public class StateClassForAttribute : Attribute
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="StateClassForAttribute"/> class.
        /// </summary>
        /// <param name="stateType">The value indicating concrete state type.</param>
        public StateClassForAttribute(object stateType)
        {
            StateType = stateType;
        }

        /// <summary>
        /// Gets the value indicating concrete state type.
        /// </summary>
        public object StateType { get; private set; }
    }
}
